﻿using System.Data.Entity.ModelConfiguration;

namespace Home.Domain.Entities.Mapping
{
    public class UserInfoMap:EntityTypeConfiguration<UserInfo>
    {
        public UserInfoMap()
        {
            Property(t => t.UserName)
                .IsRequired()
                .HasMaxLength(32);
            Property(t => t.PassWord)
                .IsRequired()
                .HasMaxLength(64);
            Property(t => t.Name)
                .HasMaxLength(16);
            Property(t => t.Email)
                .HasMaxLength(64);
            Property(t => t.CompanyName)
                .HasMaxLength(32);
            Property(t => t.Position)
                .HasMaxLength(32);
            Property(t => t.Phone)
                .HasMaxLength(32);
            Property(t => t.Address)
                .HasMaxLength(64);


        }        
    }
}
